[PATCH] <short summary of the patch>
authorCamm Maguire <camm@debian.org>
Thu, 26 Feb 2026 16:58:56 +0000 (16:58 +0000)
committerCamm Maguire <camm@debian.org>
Wed, 25 Feb 2026 13:23:26 +0000 (08:23 -0500)
TODO: Put a short summary on the line above and replace this paragraph
with a longer explanation of this change. Complete the meta-information
with other relevant fields (see below for details). To make it easier, the
information below has been extracted from the changelog. Adjust it or drop
it.

Bug-Debian: https://bugs.debian.org/1108096
Bug-Debian: https://bugs.debian.org/1118704
Bug-Debian: https://bugs.debian.org/1122744
Bug-Debian: https://bugs.debian.org/1128546
Bug-Debian: https://bugs.debian.org/1128663

Gbp-Pq: Name Version_2_7_2pre11

ansi-tests/read-byte.lsp
git.tag
h/protoize.h
lsp/gcl_make_pathname.lsp
lsp/gcl_truename.lsp

index 5b17972583375b0d4f5480cb8c67817828b7ceb4..327574396525070540d00f45f6869ceec24bab49 100644 (file)
@@ -96,7 +96,9 @@
      (let ((s (open "foo.txt"
                   :direction :input
                   :element-type '(unsigned-byte 8))))
-       (read-byte s))
+       (unwind-protect
+          (read-byte s)
+        (close s)))
      end-of-file))
   t)
 
diff --git a/git.tag b/git.tag
index f2aaaab655e9b8d7c22888a81f115026c2bbdef7..4b0fbbf3fea6962a536922438322fa2a5fcd370c 100644 (file)
--- a/git.tag
+++ b/git.tag
@@ -1,2 +1 @@
-"Version_2_7_2pre10"
-
+"Version_2_7_2pre11"
index d4e919e70a9978edf0e402883be18ba254340ceb..77a6f7d9beb61f489ab0a842da399c56fe99b948 100644 (file)
@@ -73,7 +73,6 @@ struct key {short n,allow_other_keys;
 /* bind.c:975:OF */ extern void set_key_struct (struct key *ks, object data); /* (ks, data) struct key *ks; object data; */
 /* bind.c:995:OF */ extern void gcl_init_bind (void); /* () */
 /* block.c:121:OF */ extern void gcl_init_block (void); /* () */
-/* bsearch.c:5:OF */ extern void *bsearch (const void *key, const void *base, size_t nel, size_t keysize, int (*compar) (const void *,const void *)); /* (key, base, nel, keysize, compar) char *key; char *base; unsigned int nel; unsigned int keysize; int (*compar)(); */
 #if defined (__MINGW32__)
 /* bzero.c:3:OF */ /*  extern void bzero (char *b, size_t length); */ /* (b, length) char *b; int length; */
 #endif
index 2d75cca6599ba55164fde588f6a92e1e96ddd155..7aa5e9a3ebaf3d664849d516ed56b078d6112177 100644 (file)
@@ -43,7 +43,7 @@
                                                  (string-concatenate "(" (substitute #\^ #\! (subseq x 0 2)) (subseq x 2) ")")))
                                          (cons #v"\\*" (lambda (x y) (declare (ignore x)) (if (plusp (length y)) (string-concatenate "([^" y "]*)") "(.*)")))
                                          (cons #v"\\?" (lambda (x y) (declare (ignore x)) (if (plusp (length y)) (string-concatenate "([^" y "])") "(.)")))
-                                         (cons #v"\\." (lambda (x y) (declare (ignore x y))"\\."))))
+                                         (cons #v"[+|.^$()]" (lambda (x y) (declare (ignore x y))(string-concatenate "\\" x)))))
 
 (defconstant +physical-pathname-defaults+ '(("" "" "" "")
                                            ("" "" "" "")
index 58541df6d4d9d23e2e895e8d151425c4e5cf740a..8d38e818fc73772b17f0c3ffd09fc08e58bb5d12 100644 (file)
@@ -8,7 +8,13 @@
           (fr (set-fr fr (if (eql i -1) n i)))
           (l (when (eq (stat1 fr) :link) (readlinkat 0 fr))))
       (cond (l (let ((b (if (eql #\/ (aref l 0)) 0 b)))
-                (link-expand (concatenate 'string (set-fr fr b) l (frame (if (eql i -1) n i) n)) b)))
+                (link-expand (concatenate
+                              'string
+                              (set-fr fr b)
+                              (let ((ll (1- (length l))))
+                                (if (eql #\/ (aref l ll)) (subseq l 0 ll) l))
+                              (frame (if (eql i -1) n i) n))
+                             b)))
            ((eql i -1) str)
            ((link-expand str (1+ i) n fr))))))